package com.hxexp.weixin.test.api;

import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;

import com.hxexp.weixin.common.exception.APIException;
import com.hxexp.weixin.hpe.api.startstations.StartStationsAPI;
import com.hxexp.weixin.hpe.api.startstations.model.StartStationsParamBean;
import com.hxexp.weixin.hpe.api.startstations.model.StartStationsResultBean;
import com.hxexp.weixin.test.runner.JUnit4WithSpringLogClassRunner;

/**
 * HPE出发站列表接口实现类测试
 *
 * @author wang.bin
 *
 */
@RunWith(JUnit4WithSpringLogClassRunner.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@ContextConfiguration(locations = { "classpath:conf/spring/spring-biz.xml", "classpath:conf/spring/spring-ehcache.xml" })
public class StartStationsAPIImplTester {

    @Autowired
    private StartStationsAPI startStationsAPI;

    @Test
    public void testCase01() throws APIException {

        StartStationsParamBean startStationsParamBean = new StartStationsParamBean();
        StartStationsResultBean returnValue = new StartStationsResultBean();
        // 设置请求参数
        startStationsParamBean.setGroupId("");

        returnValue = startStationsAPI.getStartStations(startStationsParamBean);
        System.out.println(returnValue);
    }
}
